Combining shapefile with dataset

Juan Andrés Cabral

Description of the Script

This Python script processes and visualizes greenhouse gas emission data from Argentina for the years 2010 to 2018. Dataset can be downloaded Here. Shapefile and associated files can be downloaded Here.

1. Data Loading

The script begins by specifying a path to the data directory and then loads an Excel file containing the emissions data. This dataset, named df, captures the emissions for different jurisdictions (provinces) within Argentina.

2. Data Cleaning

After loading the data:

3. Data Transformation

It calculates the change in emissions from 2010 to 2018 for each jurisdiction and appends this as a new column (change) to the dataset.

4. Geospatial Data Integration

The code then:

5. Visualization

Finally, the script: